package com.Ajava1704.for并发包下的类.ForConditation;

/**
 * 作者: LCG
 * 日期: 2020/6/23 00:24
 * 描述:
 */
public class ThreadUtils {

    private Object object;

    public ThreadUtils(Object object) {
        this.object = object;
    }

    public void notyAll(){
        synchronized (object){
            object.notifyAll();
        }
    }


    public void noty(){
        synchronized (object){
            object.notify();
        }
    }

}
